/*
 * @Author: Jinsc
 * @Date: 2023-01-09 09:55:56
 * @LastEditors: Jinsc
 * @LastEditTime: 2023-01-09 10:53:50
 * @FilePath: \lvgl_pm\lvgl_pm.h
 * @Description: 
 * Copyright (c) 2023 by jinsc123654@gmail.com All Rights Reserved. 
 */
#ifndef LVLG_PM_BAR_H
#define LVLG_PM_BAR_H

#ifdef __cplusplus
extern "C" {
#endif
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#include "lvgl_app/lvgl_pm/lvgl_pm.h"
#include "lvgl_app/lvgl_app.h"

typedef struct {
    int8_t Sec;
    int8_t Min;
    int8_t Hour;
    int8_t Day;
    int8_t Mon;
    int16_t Year;
    int8_t Week;
} lv_pm_rtc_def;

extern lv_coord_t status_bar_y_default;
extern lv_coord_t bakc_bar_y_default;

void lv_pm_create_status_bar(void);
void lv_pm_create_back_bar(void);
void lv_pm_bar_control_fun(lv_pm_page_t* new_t);
#ifdef __cplusplus
} /*extern "C"*/
#endif

#endif
